Understanding Python sets and their add method